package com.eye.catcher.service.generate;

import com.eye.catcher.entity.TYwDaObserveInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.eye.catcher.system.yw.Info.param.ObserveInfoDto;
import com.eye.catcher.system.yw.Info.param.ObserveInfoPage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * <p>
 * 观测信息表 服务类
 * </p>
 *
 * @author huzhiwei
 * @since 2022-05-12
 */
public interface ITYwDaObserveInfoService extends IService<TYwDaObserveInfo> {

    void addObserveInfo(TYwDaObserveInfo info);

    void editObserveInfo(TYwDaObserveInfo info);

    void deleteByIds(String ids);

    Object getAllList(ObserveInfoDto observeInfo);

    Object getPageList(ObserveInfoPage build);

    String previewYwFile(HttpServletRequest request, HttpServletResponse response, String typicalUrl) throws IOException;

    String uploadYwFile(MultipartFile file) throws IOException;

    String export(String userId, HttpServletRequest request, HttpServletResponse response);

    String checkSameProportion(String baseId,String observeId,String sameProportion,String observeName);

    boolean isEmpty(TYwDaObserveInfo info);

    String dowloadYwFile(HttpServletRequest request, HttpServletResponse response, String typicalUrl,String fileName) throws IOException;
}
